DicomObjects.NET.V8
DicomObjects Namespace / DicomImage3D Class / SetTransferFunction Method / SetTransferFunction(IEnumerable<KeyValuePair<Int32,Color>>) Method
The list of pixel values and associated colours



In This Topic
    SetTransferFunction(IEnumerable<KeyValuePair<Int32,Color>>) Method
    In This Topic
    Set the transfer function for VR from a dictionary of pixel value to Colour lookups
    Syntax
    'Declaration
     
    Public Overloads Sub SetTransferFunction( _
       ByVal ColourList As IEnumerable(Of KeyValuePair(Of Integer,Color)) _
    ) 
    'Usage
     
    Dim instance As DicomImage3D
    Dim ColourList As IEnumerable(Of KeyValuePair(Of Integer,Color))
     
    instance.SetTransferFunction(ColourList)
    public void SetTransferFunction( 
       IEnumerable<KeyValuePair<int,Color>> ColourList
    )
    public:
    void SetTransferFunction( 
       IEnumerable<KeyValuePair<int,Color>>^ ColourList
    ) 

    Parameters

    ColourList
    The list of pixel values and associated colours
    Remarks

    DicomObjects will interpolate between adjacent values, and create a linearised lookup table, which is then passed (alongside the minimum and maximum pixel values to the other override of SetTransferFunction. This method is therefore a "convenience" method to simplify such updates.

    Requirements

    Target Platforms: .NET CLR 4.0 or higher

    See Also